package com.monitorRoutine.monitorRoutineServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.monitorRoutine.monitorRoutineServer.entity.ControlCommand;
import com.monitorRoutine.monitorRoutineServer.entity.SqlRecord;
import com.monitorRoutine.monitorRoutineServer.mapper.ControlCommandMapper;
import com.monitorRoutine.monitorRoutineServer.mapper.SqlRecordMapper;
import com.monitorRoutine.monitorRoutineServer.service.ControlCommandService;
import com.monitorRoutine.monitorRoutineServer.service.SqlRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
@Slf4j
@Service
public class SqlRecordServiceImpl extends ServiceImpl<SqlRecordMapper, SqlRecord> implements SqlRecordService {
    public boolean updateSqlRecord(List<SqlRecord> sqlRecords){
        return this.updateBatchById(sqlRecords);
    }

    public List<SqlRecord>  getSqlRecordListById(List<String> id){
        List<SqlRecord> sqlRecords = this.listByIds(id);
        return sqlRecords;
    }
}
